package quizman.domain;
public abstract class Question {
	private String name;
	private String text;
		
	public Question(String name)
	{
		this.name = name;
	}
	
	public Question(String name, String text)
	{
		this.name = name;
		this.text = text;
	}

	public String getName() {
		return name;
	}

	/**
	 * @param text the text to set
	 */
	public void setText(String text) {
		this.text = text;
	}

	/**
	 * @return the text
	 */
	public String getText() {
		return text;
	}
	public String getFormHtml()
	{
		return "<p class=\"error\">Invalid question type.</p>";
	}
	
	public String getEditFormHtml()
	{
		return "<p class=\"error\">Invalid question type.</p>";
	}
}
